/**
 * @description 全局配置文件
 */
const hostUrl = window.location.origin
const hostIp = 'http://192.168.137.81'
const serverUrl = window.electronAPI
  ? window.localStorage.getItem('host_ip') || hostIp
  : hostUrl.indexOf('localhost') > -1
  ? 'http://192.168.137.8'
  : hostUrl
export const globalConfig = {
  hostIp,
  agent: import.meta.env.MODE === 'development' ? '/cloudGame' : '',
  hostUrl: serverUrl
}
